#ifndef SRC_GAME_LOGIC_H
#define SRC_GAME_LOGIC_H

#include "game_server.h"

const static int ENTITY_NULL        = 0;
const static int ENTITY_PLAYER      = 1;
const static int ENTITY_SUPER       = 2;
const static int ENTITY_FOOD        = 3;
const static int ENTITY_FOOD_EMPOI  = 4;
const static int ENTITY_KEY         = 5;

void game_deathmatch_setup(Game *game);

int game_deathmatch_logic(void *game, float ticks);
void game_deathmatch_collide_entity(void *game, float ticks, Game_Entity *e1, Game_Entity *e2);
void game_deathmatch_collide_tilemap(void *game, float ticks, Game_Entity *e, int xtile, int ytile);
void game_deathmatch_draw_player_gui(void *game, int w, int h, int localPlayer);

void game_deathmatch_input_player(Game *server, Game_Player *player, float ticks);

#endif
